package com.yanqu.road.server.cmd.activity.tongbing;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.TongBingProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.tongbing.CrossTongBingMgr;
import com.yanqu.road.server.manager.activity.tongbing.activity.CrossTongBingActivity;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C2_TONG_BING_GET_CAMP_RANK_LIST, desc = "")
public class CrossTongBingGetCampRankListCmd extends CrossUnionCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        TongBingProto.CrossTongBingReqMsg reqMsg = TongBingProto.CrossTongBingReqMsg.parseFrom(packet.getBytes());
        CrossTongBingActivity activity = CrossTongBingMgr.getActivity(reqMsg.getActivityId(), groupId);
        activity.getCampRankListByCmd(packet.getPlayerId());
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

    }

    @Override
    public void sendData() {

    }
}
